package cn.com.zhuoyan.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import cn.com.zhuoyan.dao.LoginDao;
import cn.com.zhuoyan.entity.Account;
import cn.com.zhuoyan.service.LoginService;
import cn.com.zhuoyan.util.Page;

@Service
public class LoginServiceImpl implements LoginService{
	@Autowired
	private LoginDao loginDao;

	@Override
	public int insert(Account account) throws Exception {
		int num=loginDao.insert(account);
		return num;
	}

	@Override
	public Page<Account> showPage(String queryHql, int firstResult, int maxResult, String[] str) throws Exception {
		Page<Account> page=loginDao.showPage(queryHql, firstResult, maxResult, str);
		return page;
	}

}
